<!DOCTYPE html>
<html>
<head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <meta http-equiv="Content-Style-Type" content="text/css"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta http-equiv="imagetoolbar" content="no"/>
    <meta name="viewport"
          content="user-scalable=no, initial-scale=1.2, minimum-scale=0.5, maximum-scale=2.0,width=device-width, height=device-height"/>
    <link rel="stylesheet" type="text/css" href="/RAD/release/1.0/css/default.css"/>
    <link rel="stylesheet" type="text/css" href="/RAD/release/1.0/xui/iconfont/iconfont.css"/>
    <link rel="stylesheet" type="text/css" href="/RAD/release/1.0/css/control-themes.css"/>
    <link rel="stylesheet" type="text/css" href="/plugins/formlayout/handsontable.full.min.css"/>
    <link rel="stylesheet" type="text/css" href="/xui/bpm/bpmfont.css"/>
    <link type="text/css" href="/RAD/release/1.0/fontawesome/font-awesome.min.css" rel="stylesheet">
    <link type="text/css" href="/xui/appearance/webflat/theme.css" rel="stylesheet">
    <#list $CssFills as item>
        <link rel="stylesheet" type="text/css" href="/root/${item.path}"/>
    </#list>

    <title>欢迎使用 ESDStudio 工具1.0</title>
</head>
<body spellcheck="false">

<div id='loading'>
    <img src="/RAD/img/loading.gif" alt="Loading..."/>
</div>
</body>


<script type="text/javascript" src="/xui/xui/js/ThirdParty/hammer.js"></script>


<script type="text/javascript" src="/xui/xui/js/xui.js"></script>
<script type="text/javascript" src="/xui/xui/js/APICaller.js"></script>
<script type="text/javascript" src="/xui/xui/js/MQTT.js"></script>
<script type="text/javascript" src="/xui/xui/js/DataBinder.js"></script>
<script type="text/javascript" src="/xui/xui/js/Event.js"></script>
<script type="text/javascript" src="/xui/xui/js/CSS.js"></script>
<script type="text/javascript" src="/xui/xui/js/Dom.js"></script>
<script type="text/javascript" src="/xui/xui/js/Template.js"></script>
<script type="text/javascript" src="/xui/xui/js/DragDrop.js"></script>
<script type="text/javascript" src="/xui/xui/js/Cookies.js"></script>
<script type="text/javascript" src="/xui/xui/js/History.js"></script>
<script type="text/javascript" src="/xui/xui/js/Tips.js"></script>


<script type="text/javascript" src="/xui/xui/js/Module.js"></script>
<script type="text/javascript" src="/xui/xui/js/XML.js"></script>
<script type="text/javascript" src="/xui/xui/js/XMLRPC.js"></script>
<script type="text/javascript" src="/xui/xui/js/SOAP.js"></script>
<script type="text/javascript" src="/xui/xui/js/ModuleFactory.js"></script>
<script type="text/javascript" src="/xui/xui/js/Debugger.js"></script>
<script type="text/javascript" src="/xui/xui/js/Date.js"></script>
<script type="text/javascript" src="/xui/xui/Locale/en.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/Image.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/Flash.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/Audio.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/FileUpload.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/Video.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/Tensor.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/Camera.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/Resizer.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/Block.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/Label.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/ProgressBar.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/Slider.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/Input.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/CheckBox.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/HiddenInput.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/RichEditor.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/ComboInput.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/ColorPicker.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/DatePicker.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/TimePicker.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/List.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/Gallery.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/ButtonLayout.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/TitleBlock.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/ContentBlock.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/Panel.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/Group.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/PageBar.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/Tabs.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/Stacks.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/ButtonViews.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/MTabs.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/RadioBox.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/StatusButtons.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/TreeBar.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/TreeView.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/MTreeView.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/PopMenu.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/MenuBar.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/ToolBar.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/Layout.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/TreeGrid.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/MTreeGrid.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/Dialog.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/MDialog.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/FormLayout.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/MFormLayout.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/FoldingTabs.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/FoldingList.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/Opinion.js"></script>
<script type="text/javascript" src="/xui/xui/js/ThirdParty/raphael.js"></script>
<script type="text/javascript" src="/xui/xui/js/svg.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/SVGPaper.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/FusionChartsXT.js"></script>
<script type="text/javascript" src="/xui/xui/js/UI/ECharts.js"></script>
<script type="text/javascript" src="/xui/xui/js/Coder.js"></script>
<script type="text/javascript" src="/xui/xui/js/Module/JSONEditor.js"></script>

<script type="text/javascript" src="/RAD/RAD/custom/AdvResizer.js"></script>

<script>
    xui.include("xui.Locale.cn.doc", "/RAD/release/1.0/Locale/cn.js", function () {
        xui.Module.load('RAD', function () {
            SPA = this;
        }, 'cn');
    });
</script>


<script type="text/javascript" src="/plugins/codemirror5/lib/codemirror.js"></script>
<script type="text/javascript" src="/plugins/codemirror5/mode/meta.js"></script>
<script type="text/javascript" src="/plugins/codemirror5/keymap/sublime.js"></script>
<script type="text/javascript" src="/plugins/codemirror5/addon/mode/loadmode.js"></script>
<script type="text/javascript" src="/plugins/codemirror5/addon/lint/jshint.js"></script>
<script type="text/javascript" src="/plugins/codemirror5/addon/lint/jsonlint.js"></script>
<script type="text/javascript" src="/plugins/codemirror5/addon/lint/csslint.js"></script>
<script type="text/javascript" src="/plugins/codemirror5/addon/lint/htmlhint.js"></script>
<script type="text/javascript" src="/plugins/codemirror5/addon/lint/lint.js"></script>
<script type="text/javascript" src="/plugins/codemirror5/addon/lint/javascript-lint.js"></script>
<script type="text/javascript" src="/plugins/codemirror5/addon/lint/json-lint.js"></script>
<script type="text/javascript" src="/plugins/codemirror5/addon/lint/css-lint.js"></script>
<script type="text/javascript" src="/plugins/codemirror5/addon/lint/html-lint.js"></script>
<script type="text/javascript" src="/plugins/codemirror5/addon/fold/foldcode.js"></script>
<script type="text/javascript" src="/plugins/codemirror5/addon/fold/foldgutter.js"></script>
<script type="text/javascript" src="/plugins/codemirror5/addon/fold/brace-fold.js"></script>
<script type="text/javascript" src="/plugins/codemirror5/addon/fold/xml-fold.js"></script>
<script type="text/javascript" src="/plugins/codemirror5/addon/fold/comment-fold.js"></script>
<script type="text/javascript" src="/plugins/codemirror5/addon/search/searchcursor.js"></script>
<script type="text/javascript" src="/plugins/codemirror5/addon/search/match-highlighter.js"></script>
<script type="text/javascript" src="/plugins/codemirror5/addon/edit/matchbrackets.js"></script>
<script type="text/javascript" src="/plugins/codemirror5/addon/edit/closebrackets.js"></script>
<script type="text/javascript" src="/plugins/codemirror5/addon/comment/comment.js"></script>
<script type="text/javascript" src="/plugins/codemirror5/addon/comment/continuecomment.js"></script>
<script type="text/javascript" src="/plugins/codemirror5/mode/javascript/javascript.js"></script>
<script type="text/javascript" src="/plugins/codemirror5/mode/xml/xml.js"></script>
<script type="text/javascript" src="/plugins/codemirror5/mode/css/css.js"></script>
<script type="text/javascript" src="/plugins/codemirror5/mode/htmlmixed/htmlmixed.js"></script>

<script type="text/javascript" src="/RAD/RAD/conf.js"></script>
<script type="text/javascript" src="/RAD/RAD/conf_widgetsall.js"></script>
<script type="text/javascript" src="/RAD/RAD/conf_widgets.js"></script>
<script type="text/javascript" src="/RAD/RAD/SPAConf.js"></script>
<script type="text/javascript" src="/RAD/RAD/fcconf.js"></script>
<script type="text/javascript" src="/RAD/RAD/CodeEditor.js"></script>
<script type="text/javascript" src="/RAD/RAD/ClassTool.js"></script>
<script type="text/javascript" src="/RAD/RAD/JSEditor.js"></script>
<script type="text/javascript" src="/RAD/RAD/expression/JavaEditor.js"></script>
<script type="text/javascript" src="/RAD/RAD/PageEditor.js"></script>
<script type="text/javascript" src="/RAD/RAD/FunEditor.js"></script>
<script type="text/javascript" src="/RAD/RAD/JSONEditor.js"></script>
<script type="text/javascript" src="/RAD/RAD/ObjectEditor2.js"></script>
<script type="text/javascript" src="/RAD/RAD/FileSelector.js"></script>
<script type="text/javascript" src="/RAD/RAD/MobileInstruction.js"></script>
<script type="text/javascript" src="/RAD/RAD/HTMLEditor.js"></script>
<script type="text/javascript" src="/RAD/RAD/Designer.js"></script>
<script type="text/javascript" src="/RAD/RAD/ToolBox.js"></script>
<script type="text/javascript" src="/RAD/RAD/ClassTree.js"></script>
<script type="text/javascript" src="/RAD/RAD/ServiceTree.js"></script>
<script type="text/javascript" src="/RAD/RAD/ProjectTree.js"></script>

<script type="text/javascript" src="/RAD/RAD/JumpTo.js"></script>
<script type="text/javascript" src="/RAD/RAD/FAndR.js"></script>
<script type="text/javascript" src="/RAD/RAD/EditorTool.js"></script>
<script type="text/javascript" src="/RAD/RAD/EditorTheme.js"></script>
<script type="text/javascript" src="/RAD/RAD/ServiceTester.js"></script>
<script type="text/javascript" src="/RAD/RAD/SelRenderMode.js"></script>
<script type="text/javascript" src="/RAD/RAD/About.js"></script>
<script type="text/javascript" src="/RAD/RAD/GridBorder.js"></script>


<script type="text/javascript" src="/RAD/RAD/CustomDecoration.js"></script>
<script type="text/javascript" src="/RAD/RAD/CustomDecoration2.js"></script>
<script type="text/javascript" src="/RAD/RAD/CustomBorder.js"></script>
<script type="text/javascript" src="/RAD/RAD/CustomBoxShadow.js"></script>
<script type="text/javascript" src="/RAD/RAD/CustomTextShadow.js"></script>
<script type="text/javascript" src="/RAD/RAD/CustomTransform.js"></script>
<script type="text/javascript" src="/RAD/RAD/CustomGradients.js"></script>
<script type="text/javascript" src="/RAD/RAD/CustomEffects.js"></script>
<script type="text/javascript" src="/RAD/RAD/ActionsEditor.js"></script>
<script type="text/javascript" src="/RAD/RAD/InteractionMap.js"></script>
<script type="text/javascript" src="/RAD/RAD/AnimationConf.js"></script>
<script type="text/javascript" src="/RAD/RAD/EventPicker.js"></script>

<script type="text/javascript" src="/RAD/RAD/SVGCustomDecoration.js"></script>
<script type="text/javascript" src="/RAD/RAD/SVGCustomGradients.js"></script>
<script type="text/javascript" src="/RAD/RAD/ChartCustomSetting.js"></script>
<script type="text/javascript" src="/RAD/RAD/CustomArrows.js"></script>
<script type="text/javascript" src="/RAD/RAD/PropEditor.js"></script>
<script type="text/javascript" src="/RAD/RAD/MixPropEditor.js"></script>

<script type="text/javascript" src="/RAD/RAD/CustomPackage.js"></script>
<script type="text/javascript" src="/RAD/RAD/APIConfig.js"></script>

<script type="text/javascript" src="/RAD/RAD/SwitchWorkspace.js"></script>

<script type="text/javascript" src="/RAD/RAD/UIDesigner.js"></script>
<script type="text/javascript" src="/RAD/RAD/SelFontAwesome.js"></script>

<script type="text/javascript" src="/RAD/RAD/XUIBuilder.js"></script>
<script type="text/javascript" src="/RAD/RAD/AddFile.js"></script>
<script type="text/javascript" src="/RAD/RAD/ProjectPro.js"></script>
<script type="text/javascript" src="/RAD/RAD/TemplatePreview.js"></script>
<script type="text/javascript" src="/RAD/RAD/TemplateSelector.js"></script>
<script type="text/javascript" src="/RAD/RAD/ImageSelector.js"></script>
<script type="text/javascript" src="/RAD/RAD/index.js"></script>
<script type="text/javascript" src="/RAD/RAD/expression/JavaEditor.js"></script>
<script type="text/javascript" src="/RAD/RAD/expression/CodeEditor.js"></script>
<script type="text/javascript" src="/plugins/formlayout/handsontable.full.min.js"></script>
<script type="text/javascript" src="/RAD/RAD/expression/ExpressionTemp.js"></script>
<script type="text/javascript" src="/RAD/RAD/expression/ExpressionEditor.js"></script>
<script type="text/javascript" src="/RAD/RAD/expression/PageEditor.js"></script>
<script type="text/javascript" src="/RAD/release/1.0/Locale/cn.js"></script>

<script type="text/javascript">

    CONF.clientType = 'ESDClient';
    currProjectName = "${projectName}";
    domainId = "${domainId}";
    window.handleId
    $E = xui.execExpression;
    $BPD = {
        open: function () {
            $E('$BPD.open()')
        },
        close: function () {
            $E('$BPD.close()')
        },
        newprocess: function () {
            var paramArr = {projectName: "${projectName}"};
            paramArr.handleId = window.handleId;
            $E('$ESD.newprocess()', paramArr);
        },
    }


    $ESD = {
        export: function (url, params) {
            var paramArr = params || {projectName: "${projectName}"};
            if (url) {
                paramArr.url = url;
                paramArr.handleId = window.handleId;
            }
            $E('$ESD.export()', paramArr);

        },


        publicRemote: function () {
            var paramArr = {
                projectName: "${projectName}",
                className: SPA.currentClassName
            };
            paramArr.url = window.location.href;
            $E('$ESD.publicRemote()', paramArr)
        },
        publicLocal: function () {
            var paramArr = {
                projectName: "${projectName}",
                className: SPA.currentClassName
            };
            paramArr.url = window.location.href;
            $E('$ESD.publicLocal()', paramArr)
        },


        exportRemoteServer: function () {
            var paramArr = {projectName: "${projectName}"};
            paramArr.url = window.location.href;
            $E('$ESD.exportRemoteServer()', paramArr)
        },

        screen: function () {
            var paramArr = {projectName: "${projectName}"};
            paramArr.url = window.location.href;
            $E('$ESD.screen()', paramArr)
        },

        buildCustomModule: function (url, params) {
            var paramArr = {projectName: "${projectName}"};
            paramArr.handleId = window.handleId;
            $E('$ESD.rebuildCustomModule()', paramArr)
        },

        download: function (url, params) {
            var paramArr = params || {projectName: "${projectName}"};
            if (url) {
                paramArr.url = url;
                paramArr.handleId = window.handleId;
            }
            $E('$ESD.download()', paramArr);
            xui.busy();
        },


        startDebugServer: function (url, params) {
            var paramArr = params || {projectName: "${projectName}"};
            if (url) {
                paramArr.url = url;
                paramArr.handleId = window.handleId;
            }

            $E('$ESD.startDebugServer()', paramArr)
        },
        stopDebugServer: function (url, params) {
            var paramArr = params || {projectName: "${projectName}"};
            if (url) {
                paramArr.url = url;
                paramArr.handleId = window.handleId;
            }

            $E('$ESD.stopDebugServer()', paramArr)
        },

        exportLocalServer: function (url, params) {
            var paramArr = params || {projectName: "${projectName}"};
            if (url) {
                paramArr.url = url;
                paramArr.handleId = window.handleId;
            }
            $E('$ESD.exportLocalServer()', paramArr)
        },


        pull: function (url, params) {
            var paramArr = params || {projectName: "${projectName}"};
            if (url) {
                paramArr.url = url;
                paramArr.handleId = window.handleId;
            }
            $E('$ESD.pull()', paramArr)
        },

        clearAll: function (url, params) {
            var paramArr = params || {projectName: "${projectName}"};
            if (url) {
                paramArr.url = url;
                paramArr.handleId = window.handleId;
            }
            $E('$ESD.clearAll()', paramArr)
        },


        push: function (url, params) {
            var paramArr = params || {projectName: "${projectName}"};
            if (url) {
                paramArr.url = url;
                paramArr.handleId = window.handleId;
            }
            $E('$ESD.push()', paramArr)
        },


        clearAll: function (url, params) {
            var paramArr = params || {projectName: "${projectName}"};
            if (url) {
                paramArr.url = url;
                paramArr.handleId = window.handleId;
            }
            $E('$ESD.clearAll()', paramArr)
        },

        open: function (url, params) {
            var paramArr = params | {};
            if (url) {
                paramArr.url = url;
                paramArr.handleId = window.handleId;
            }
            $E('$ESD.open()', paramArr)
        },

        reload: function (packageName, params) {
            var paramArr = params || {projectName: "${projectName}"};
            paramArr.handleId = window.handleId;
            if (packageName) {
                paramArr.packageName = packageName;
            }
            $E('$ESD.reload()', paramArr)
        },

        customDebug: function (params) {
            var paramArr = params || {projectName: "${projectName}"};
            paramArr.handleId = window.handleId;
            $E('$ESD.customDebug()', paramArr)
        },

        clear: function (spaceName, params) {
            var paramArr = params || {projectName: "${projectName}"};
            paramArr.handleId = window.handleId;
            if (spaceName) {
                paramArr.spaceName = spaceName;
            }
            $E('$ESD.clear()', paramArr)
        },

        createDBModule: function (url, params) {
            var paramArr = params || {projectName: "${projectName}"};
            if (url) {
                paramArr.url = url;

            }
            paramArr.handleId = window.handleId;
            $E('$ESD.createDBModule()', paramArr)
        },

        openProject: function (newProjectName, params) {
            var paramArr = params || {};
            if (newProjectName) {
                paramArr.newProjectName = newProjectName;
                paramArr.handleId = window.handleId;
            }
            $E('$ESD.openProject()', paramArr)
        },
        quit: function () {
            $E('$ESD.quit()')
        },
        logout: function () {
            $E('$ESD.logout()')
        },
        clear: function () {
            $E('$ESD.clear()', {projectName: SPA.curProjectName})
        }
    }
</script>


</html>
